package com.questionGenerator.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.questionGenerator.model.UserDO;
import org.apache.ibatis.annotations.Select;
import org.springframework.stereotype.Repository;

/**
 * Created with IntelliJ IDEA.
 *
 * @Author: usagi
 * @Date: 2024/04/09/16:37
 * @Description:
 */
@Repository
public interface UserMapper extends BaseMapper<UserDO> {

    @Select("select * from questiongenerator.t_user where username = #{username}")
    UserDO selectByUsername(String username);
}
